<f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:w="http://www.apusic.com/jsf/widget" xmlns:layout="http://www.apusic.com/jsf/layout"
	xmlns:ajax="http://www.apusic.com/jsf/ajax" xmlns:om="http://www.apusic.com/jsf/misc"
	xmlns:h="http://java.sun.com/jsf/html" renderKitId="AJAX">
	<w:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	</w:head>
	<!-- Insert some content here -->
	<w:page title="List Winlet Demo">
		<om:useBean value="demo.winlet.list.UserInfoListBean"></om:useBean>
		<h:outputText value="#{demo.winlet.list.UserInfoListBean.messageText}" style="color:red;"></h:outputText>
		<w:form>
			<w:toolBar>
				<w:button id="btnNew" value="新增"  actionBinding="#{demo.winlet.list.UserInfoListBean.addNewAction}" />
				<w:button id="btnEdit" value="修改" actionBinding="#{demo.winlet.list.UserInfoListBean.editAction}" />
				<w:button id="btnView" value="查看" actionBinding="#{demo.winlet.list.UserInfoListBean.viewAction}" />
				<w:button id="btnDelete" value="删除" actionBinding="#{demo.winlet.list.UserInfoListBean.deleteAction}" />
				<w:button id="btnRefresh" value="刷新" actionBinding="#{demo.winlet.list.UserInfoListBean.refreshAction}" />
			</w:toolBar>
			<w:dataGrid id="datagrid" paged="true" rows="20" style="height:500px"
				binding="#{demo.winlet.list.UserInfoListBean.grid}" value="#{demo.winlet.list.UserInfoListBean.pagedListData }"
				var="data" trackMouseOver="false">
				<w:idColumn id="id" header="ID" value="#{data.id}"></w:idColumn>
				<w:outputColumn header="姓名" id="name" value="#{data.name}"></w:outputColumn>
				<w:outputColumn header="密码" id="password" value="#{data.password}"></w:outputColumn>
				<w:outputColumn header="备注" id="description" value="#{data.description}"></w:outputColumn>
			</w:dataGrid>
		</w:form>
		<layout:window id="editDialog" binding="#{demo.winlet.list.UserInfoListBean.editWindow}" width="350" height="210" modal="true" maximizable="true" >
			<center>
			<ajax:updater id="updater1" globalAction="true"  binding="#{demo.winlet.list.UserInfoListBean.updater}" />
			</center>
		</layout:window>
	</w:page>
</f:view>